#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int arry[10] = { 5,4,6,2,1,5,8,9,4,10 };
	for (int i = 0; i < 9; i++)
	{
		int end = i;
		int tmp = arry[end + 1];
		while (end >= 0)
		{
			if (tmp<arry[end])
			{
				arry[end + 1] = arry[end];
				--end;
			}
			else
				break;
		}
		arry[end+1] = tmp;
	}
	for (int i = 0; i < 10; i++)
		printf("%d ", arry[i]);
	return 0;
}
